<?php
$this->menu = array(
	array('label'=>'新建导航组', 'url'=>array('edit'), 'visible'=>Yii::app()->user->v('manage@NavigationEdit')),
);
echo CHtml::tag('h2', array(), '导航管理列表');
$table = new YDataGrid($navs, array(
	'columns' => array(
		'title',
		'code',
		'total',
	),
	'key' => '_id'
));

$table
->setTitles(array('导航组名称', '代码', '总数'))
->insertCol(0, array(
	YHtmlDataGrid::link('编辑', '/manage/navigation/edit/{$key}', array('visible'=>Yii::app()->user->v('manage@NavigationEdit'))),
		YHtmlDataGrid::jsLink('删除', 'del', array('visible'=>Yii::app()->user->v('manage@NavigationDel'))),
), '操作')
->render(false);